package com.tianyuan.mapper;

import com.tianyuan.domain.Persons;
import com.tianyuan.domain.PersonsExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PersonsMapper {
    int countByExample(PersonsExample example);

    int deleteByExample(PersonsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Persons record);

    int insertSelective(Persons record);

    List<Persons> selectByExample(PersonsExample example);

    Persons selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Persons record, @Param("example") PersonsExample example);

    int updateByExample(@Param("record") Persons record, @Param("example") PersonsExample example);

    int updateByPrimaryKeySelective(Persons record);

    int updateByPrimaryKey(Persons record);

    @Select("select * from persons")
    List<Persons> findAll();
}